package com.liyiruo.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/")
public class CloudController
{
    @PostMapping("getSum")
    public String getSum(@RequestParam(value = "num1") Integer num1, @RequestParam (value = "num2") Integer num2)
    {
        return "success：两数求和结果=" + (num1 + num2);
    }
}
